import { Entity, Column, PrimaryGeneratedColumn } from 'typeorm'

@Entity()
export class User {
    @PrimaryGeneratedColumn()
    id: number

    @Column({
        default: '',
    })
    username: string

    @Column()
    tel: string

    @Column({
        default: 'woman',
    })
    sex: string

    @Column()
    code: string

    @Column({
        default: ''
    })
    password: string
}
